<?php
@require_once("config.php");
$id=$_GET["id"];
$str="select * from newinfo where id='$id'";
$result=mysql_query($str);
$item=mysql_fetch_array($result);

$obj=array();

$obj["smallimg"]=$item["smallimg"];
$obj["price1"]=$item["price1"];
$obj["goodsname"]=$item["goodsname"];
$obj["miaoshu"]=$item["miaoshu"];
$obj["color"]=$item["color"];
$obj["dingzhi"]=$item["dingzhi"];

echo json_encode($obj);
?>